package com.czxy.demo02;

import java.util.Arrays;

/**
 * Created by hp on 2020/1/30.
 */
public class Test08 {
    public static void main(String[] args) {
        int[] arr = new int[9];
        arr[0]=88;
        arr[1]=96;
        arr[2]=97;
        arr[3]=74;
        arr[4]=90;
        arr[5]=58;
        arr[6]=77;
        arr[7]=90;
        arr[8]=99;
        Arrays.sort(arr);
        int sum =0;
        for (int i = 1; i <arr.length ; i++) {
            sum+=arr[i];
        }
        System.out.println("去掉最低分后剩余元素的平均分："+sum/(arr.length-1));
    }
}
